#pragma once
#include <QtGui/qdialog.h>
#include <QtGui/QListWidget>
#include <QtGui/QSpinBox>

class CMaterialWidget :
	public QWidget
{
	Q_OBJECT;
public:
	CMaterialWidget(std::string file);
	~CMaterialWidget(void);
public slots:
	void itemChanged(QListWidgetItem*, QListWidgetItem*);
	void apply();
protected:
	void initWindow();
private:
	QListWidget* m_pMaterials;
	QSpinBox* m_pCoordSEdit;
	QSpinBox* m_pCoordTEdit;
	QPointF m_coord[12];
	std::string m_file;
};

